package com.tll.rpc.framework;

import com.tll.rpc.service.HelloService;

/**
 * Created by tll on 2017/3/30.
 */
public class RpcConsumer {
    public static void main(String[] args) throws InterruptedException {
        HelloService service=RpcFramework.refer(HelloService.class,"127.0.0.1",1234);
        for (int i=0;i<Integer.MAX_VALUE;i++){
            String hello=service.hello("world"+i);
            System.out.println(hello);
            Thread.sleep(1000);
        }
    }
}
